package com.pd.kit;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author: dong peng
 * @date: 2018/8/8 14:13
 * @description:
 */

public class ThreadPoolSigleton {

    private static ThreadPoolExecutor executor = new ThreadPoolExecutor(10
            ,50,2, TimeUnit.SECONDS
            , new LinkedBlockingDeque<Runnable>());

    private ThreadPoolSigleton() {}

    public static ThreadPoolExecutor getInstance() {
        return executor;
    }
}
